import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { ApiService } from '../api.service';
import { Observable } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class PingPongService extends ApiService {
  constructor(http: HttpClient) {
    super(http);
  }

  ping(): Observable<string> {
    return this.http.get<string>(super.prefixUrlWithBase('/ping'));
  }
}
